__file__ = 'A09.py'
__author__ = 'Jerry Liu'
__date__ = '2016-04-14'

"""
    问题：一个HTML文件，找出里面的链接
"""
from bs4 import BeautifulSoup
import urllib.request

def gethtml(url):
    htmlsource = urllib.request.urlopen(url).read()
    bs = BeautifulSoup(htmlsource, "html.parser")
    print(bs.find_all('a'))

if __name__ == '__main__':
    gethtml('http://item.jd.com/1455427.html')
